package com.geek.spring5work;

import org.springframework.beans.factory.FactoryBean;

/**
 * @Author: lishuangqiang
 * @Date: 2021/12/5
 * @Description:
 */

public class BeanSevenFactory implements FactoryBean<BeanSeven> {
    @Override
    public BeanSeven getObject() throws Exception {
        BeanSeven beanSeven = new BeanSeven();
        return beanSeven;
    }

    @Override
    public Class<?> getObjectType() {
        return BeanSeven.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
